const Router = require('koa-router');
// 注册登录
const authRoutes = require('./auth');
// 商品信息
const productRoutes = require('./product');
// 用户信息
const userRoutes = require('./user');
// 保存文件
const uploadRoutes = require('./upload');
// protobuf
const protobufRoutes = require('./protobuf');

const router = new Router();

router.use(authRoutes.routes());
router.use(productRoutes.routes());
router.use(userRoutes.routes());
router.use(uploadRoutes.routes());
router.use(protobufRoutes.routes());

module.exports = router;
